package com.example.cinema.mapper;

import com.example.cinema.entity.Movie;
import com.example.cinema.entity.Still;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yc138
 * @since 2024-08-26
 */
public interface StillMapper extends BaseMapper<Still> {
    @Select("select * from still where mid = #{mid}")
    List<Still> selectByMid(int mid);

    @Select("select * from still order by id desc limit 0,5")
    List<Still> getFiveStill();
}
